set :application, "crowd-control"
set :repository,  "http://crowd-control.googlecode.com/svn/trunk"

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
# set :deploy_to, "/var/www/#{application}"
set :deploy_to, "/home/james/cc.netlagoon.com"
set :user, "james"
set :rails_env, "netlagoon"
set :use_sudo, false
set :rake, "/opt/ruby/bin/rake"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion

role :app, "cc.netlagoon.com"
role :web, "cc.netlagoon.com"
role :db,  "cc.netlagoon.com", :primary => true


namespace :deploy do
  task :start, :roles => :app do
  end

  task :restart, :roles => :app do
    run "touch #{current_path}/tmp/restart.txt"
  end
end
